package com.itheima.threadDemo.Demo10;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo10 {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> ab = new ArrayBlockingQueue<>(1);
        Foodie f = new Foodie(ab);
        Cooker c = new Cooker(ab);
        f.start();
        c.start();
    }
}
